package com.szamc.tableroundapi.model.Response.Common;

import lombok.Data;

@Data
public class Result<T> {
    private int code;
    private String message;
    private T data;
    public Result(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public static<T>  Result<T> Success(T data){
        return new Result<T>(200,"Success",data);

    }
}

